package com.example.datajdbc.model;

import java.util.HashMap;
import java.util.Map;

import org.springframework.data.annotation.Id;

import lombok.Data;

@Data
public class LegoSet {

    @Id
    private Integer id;

    private String name;

    private Manual manual;

    private Map<String, Model> models = new HashMap<>();

    public void addModel(final String name, final String description) {
        this.models.put(description, new Model(name, description));
    }

}
